/*© 2010-2011 mOcean Mobile. A subsidiary of Mojiva, Inc. All Rights Reserved.*/
package com.adserver.adview;

import java.util.logging.Level;

public class AdServerException extends Exception {
    public AdServerException() {
        super();
        Logger.getInstance().logText(Level.SEVERE, "Unknown reason");
    }

    public AdServerException(String message) {
        super(message);
        Logger.getInstance().logText(Level.SEVERE, message);
    }

    public AdServerException(String message, Throwable cause) {
        super(message, cause);
        Logger.getInstance().logText(Level.SEVERE,
                new StringBuilder().append(message).append(cause.getMessage()).toString());
    }

    public AdServerException(Throwable cause) {
        super(cause);
        Logger.getInstance().logText(Level.SEVERE, cause.getMessage());
    }
}
